//
//  AttentionCell.m
//  CarLife
//
//  Created by yu on 2019/6/11.
//  Copyright © 2019年 jpas. All rights reserved.
//

#import "AttentionCell.h"

@implementation AttentionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    UIView *lineView = [[UIView alloc] init];
    lineView.backgroundColor = kLineGrayColor;
    [self.contentView addSubview:lineView];
    
    lineView.sd_layout
    .leftSpaceToView(self.contentView, 0)
    .bottomSpaceToView(self.contentView, 0)
    .rightSpaceToView(self.contentView, 0)
    .heightIs(0.5);
}

//- (void)setMineFocusType:(MineFocusType)mineFocusType
//{
//    _mineFocusType = mineFocusType;
//    if (mineFocusType == MineFocusTypeAttention) {
//        [self.focusBtn setImage:IMAGE_NAMED(@"focus1") forState:UIControlStateNormal];
//    } else {
//        [self.focusBtn setImage:IMAGE_NAMED(@"no_focus") forState:UIControlStateNormal];
//    }
//}


- (IBAction)focusAction:(id)sender {    
    if (self.attentionBlock) {
        self.attentionBlock((UIButton *)sender);
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
